import { INCREMENT, DECREMENT } from '../types'
export function increment(data) {
  return {
    type: INCREMENT,
    data
  }
}
export function decrement(data) {
  return {
    type: DECREMENT,
    data
  }
}
export function asyncIncrement(data, delay) {
  return dispatch => {
    setTimeout(() => {
      dispatch(increment(data))
    }, delay)
  }
}
